package cn.kgc.javaweb.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/5/22
 * @Description:  封装用户信息数据   角色信息
 */
@Data
public class UserVO {
    private Long id;
    private String username;
    private String password;
    private String sex;
    @JSONField(format = "yyyy-MM-dd")  //  设置日期转换成json时的格式  2023-10-11
    private Date birth;
    private Long roleId;

    private  String roleName;
}
